package com.orhon.smartcampus.modules.systemctl.mm;


import java.util.List;

import org.mapstruct.InheritConfiguration;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import com.orhon.smartcampus.modules.base.mm.DictionaryMapper;
import com.orhon.smartcampus.modules.base.mm.LangMapper;
import com.orhon.smartcampus.modules.systemctl.entity.OperationDepartmentRelation;
import com.orhon.smartcampus.modules.systemctl.gqlModel.GQLOperationDepartmentRelation;


@Mapper(uses = {
        DictionaryMapper.class,
        LangMapper.class,
        OperationMapper.class,
        DepartmentMapper.class,
        DutiesMapper.class
       
})
public interface OperationDepartmentRelationMapper {

    OperationDepartmentRelationMapper MAPPER = Mappers.getMapper(OperationDepartmentRelationMapper.class);

    @Mapping(source = "id" , target = "id")
    @Mapping(target = "operation_id" , ignore = true)
    @Mapping(target = "duty_id" , ignore = true)
    @Mapping(target = "department_id" , ignore = true)
    GQLOperationDepartmentRelation toOperationDepartmentRelation(OperationDepartmentRelation entity);
    
    @InheritConfiguration(name = "toOperationDepartmentRelation")
    List<GQLOperationDepartmentRelation> toOperationDepartmentRelationList(List<OperationDepartmentRelation> entities);

}
